﻿<UserControl x:Class="MemoryGames.Games.SearchDifferences.Maintenance"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="700" Width="1000" Background="Green">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="100"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        
        <Canvas Grid.Column="0" Grid.Row="1">
            <Label Foreground="White">Selecteer item</Label>
            <ListView Height="210" Width="200" Canvas.Top="25" Name="lvItems" ItemsSource="{Binding}" SelectionChanged="lvItems_SelectionChanged">
                <ListView.View>
                    <GridView>
                        <GridViewColumn Width="200" Header="Omschrijving" DisplayMemberBinding="{Binding Path=Name}">
                            <GridViewColumn.CellTemplate>
                                <DataTemplate>
                                    <Label />
                                </DataTemplate>
                            </GridViewColumn.CellTemplate>
                        </GridViewColumn>
                    </GridView>
                </ListView.View>
            </ListView>
            <Button Canvas.Top="241" Height="22" Canvas.Left="0" Width="126.343" Click="New_Click">Nieuw item toevoegen</Button>
            <Button Canvas.Top="266" Height="22" Canvas.Left="0" Width="94.427" Click="Delete_Click">Item verwijderen</Button>
            <Button Height="23" Name="btnCancel" Width="71" Canvas.Left="77" Canvas.Top="315" Click="btnCancel_Click">Annuleren</Button>
            <Button Canvas.Left="0" Canvas.Top="315" Height="23" Name="btnSave" Width="71">Opslaan</Button>
        </Canvas>
        <Canvas Grid.Column="1" Grid.Row="1" DataContext="{Binding}" Name="cPuzzle">
            <Label Foreground="White">Naam</Label>
            <TextBox Canvas.Left="50" Width="200" Text="{Binding Path=Name}" DataContext="{Binding}"></TextBox>

            <Label Canvas.Top="35" Foreground="White">Afbeelding compleet</Label>
            <Button Canvas.Left="150" Canvas.Top="35" Name="btnCompleteFile" Click="btnCompleteFile_Click">Selecteer bestand</Button>
            <Image Source="{Binding Path=CompleteImage}" Name="imgComplete" Canvas.Top="60" Width="400" Height="300" DataContext="{Binding}"></Image>
            <Label Canvas.Left="400" Canvas.Top="35" Foreground="White">Afbeelding incompleet</Label>
            <Label Canvas.Left="400" Canvas.Top="360" Foreground="White">Klik op afbeelding om verschillen aan te geven</Label>
            <Button Canvas.Top="35" Canvas.Left="540" Name="btnInCompleteFile" Click="btnInCompleteFile_Click">Selecteer bestand</Button>
            <Image Name="imgInComplete" Canvas.Top="60" Canvas.Left="400" Width="400" Height="300" Grid.Column="1">
            </Image>
        </Canvas>
    </Grid>
</UserControl>
